define(() => {
    return function (goodsMsg) {
        return goodsMsg.reduce((prev, now) => now.check ? prev + now.num * now.price : prev, 0)
    }
})